<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

	<head>
		<meta charset="utf-8" />
		
		<title>登录界面</title>
		<!-- 引入reset.css用来清除浏览器的默认样式 -->
		<link rel="stylesheet" type="text/css" href="<%=path%>/css/YXQ/reset-min.css" />
		<!-- 引入page-index -->
		<link rel="stylesheet" type="text/css" href="<%=path%>/css/YXQ/Login-index.css" />
	<script>	
		function selectOneByName(selectName){
			var selectName=document.getElementById("selectName").value;
			window.location.href="<%=path%>/YXQ/ShiXian?selectName="+selectName;
		}
</script>
<!--  
		<script>
	
		function selectOneByName(selectName){
			
			var selectName=document.getElementById("selectName").value;
			
			window.parent.layer.open({
				type : 2,
				title : '查询一条信息',
				shadeClose : false,
				shade : 0.8,
				scrollbar : false,
				area : [ '400px', '300px'],
				content : [ "<%=path%>/YXQ/ShiXian?selectName="+selectName,"no" ],
			});
		}
</script>-->
	</head>
	<body>
		<!--设置横线，header-1开始-->
		<div class="header-1">
			<hr/>
		</div>
		<!--header-1结束-->

		<!--header开始-->
		<div class="header w">
			<hr/>
		</div>
		<!--header结束-->

		<!--content开始-->
		<div class="content w" >
			<!-- 创建一个表单 -->
	 <!-- 传送数据有冲突，index_1界面在传，查询的数据也在传？？？？？？？？？
	 
	 查询语句有问题，按照名字查询时依旧会有中文乱码问题
	  -->
	 
	 name: <input id="selectName" style="font-size:20px" class="text" type="text" name="username" placeholder="userName ：">
	 <hr>
	 password:<input style="font-size:20px" class="text" border="0 0 1 0" type="password" name="password" placeholder="Password ：">
	 <input onclick="selectOneByName()" class="btn" type="submit" value="登录">
	    <!--  
	      <center>
				<table>
							
					<tr>
					<td><input id="selectName" style="font-size:20px" class="text" type="text" name="username" placeholder="userName ："></td>
					</tr>
					
					<tr>
					<td><input style="font-size:20px" class="text" border="0 0 1 0" type="password" name="password" placeholder="Password ：">  </td>
					</tr>
					
					<tr>
					<td><input onclick="selectOneByName()" class="btn" value="登录"></td>
					</tr>                   
			</table>
			</center>-->
		</div>
	</body>

</html>